package cloud.keveri.gateway.plugin.api;

import cloud.keveri.base.ErrorCode;

/**
 * <p>
 * 作者：沈自在
 **/
public interface GatewayPluginErrorCodeConstants {

    ErrorCode PATH_NO_MATCHED = new ErrorCode(5_000_000, "哥们，你瞎写什么路径呢？404啦！");

    ErrorCode ACQUIRE_CONTEXT_ERROR = new ErrorCode(5_000_001, "获取网关上下文失败");

    ErrorCode ACQUIRE_GENERIC_SERVICE_ERROR = new ErrorCode(5_000_002, "获取 GenericService 失败");

    ErrorCode UNIQUE_ID_MUST_NOT_NULL = new ErrorCode(5_000_003, "请求中必须包含 unique Id");

    ErrorCode RESPONSE_EXTRACT_ERROR = new ErrorCode(5_000_004, "响应提取失败");

    ErrorCode UNIQUE_INVALID = new ErrorCode(5_000_005, "unique Id 无效");

    ErrorCode PARAM_NOT_MATCH = new ErrorCode(5_000_006, "请求参数不匹配，多看看 API 文档谢谢");
}
